< previous page page_363 next page >

Page 363
12181-0363a.gif
Figure 13.18.
The Address/Phone list report with the calculated fields added.
Adding the Crystal Reports Control to Your Application
Although you can run the reports you create from within Crystal Reports, you'll probably want to access them from within your Visual Basic program. Fortunately, Visual Basic and Crystal Reports has made it very easy to include the reports in a Visual Basic application. You actually have a choice of using the supplied Crystal Reports custom control, or the Crystal Reports APIs. I personally choose the custom control for its ease of use. The Crystal Reports control provides a link between the Crystal Reports engine and the reports you create with the report designer.
The first step in accessing Crystal Reports is to add the control to your project. If Visual Basic isn't started, start it and create a new project. If the Crystal Reports control (see Figure 13.19) isn't in your toolbox, add it using the Components dialog box.
Note
If you performed a custom setup of Visual Basic, you may have left Crystal Reports out of the initial installation. You need to rerun the Visual Basic setup program and install the Crystal Reports components.

 
< previous page page_363 next page >

If you like this book, buy it!